The largest Questions Bank
A function is a small segment of the program(sub program) designed to perform a specific task and return a result to the main or calling program.